<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
    return view('welcome');
});
//图片上传路由,由于不确定上传方式,所以定义路由为any路由,也就是任意方式的路由
Route::any('/upload','Common\UploaderController@upload');
//获取已经上传的图片列表路由
Route::any('/fileList','Common\UploaderController@fileLists')->name('fileList');
Route::any('/oss','Common\OssController@sign')->name('oss');


//引入后台路由文件
include 'admin/admin.php';

